package adventure.commands;

import adventure.*;
import player.*;

/**
 *
 * @author Michael Hanns
 *
 */
public class Inventory extends AbstractCommand {

    public Inventory(Adventure a) {
        super(a, new String[]{"INVENTORY"});
    }

    @Override
    public String validateAndExecute(Player p, String[] args) {
        if (args.length == 1) {
            return p.getInventoryPrompt();
        } else {
            return "Command not recognised.";
        }
    }
}
